package main

import (
	"fmt"
	"math/big"
)

func main() {
	r:=big.NewRat(2,4)
	fmt.Println(r.Float32())
	fmt.Println(r.Num())
	fmt.Println(r.Denom())

	f1:=big.NewRat(1,3)
	f2:=big.NewRat(2,3)
	f1.Add(f1,f2)
	fmt.Println(f1.IsInt())
	fmt.Println(f1.Float32())
}
